package com.sservice.service.service;

import com.sservice.model.entity.SalePersonAccount;
import com.sservice.model.vo.SalePersonAccountVo;

import java.util.List;

public interface ISalePersonAccountService {

//    public User queryByUserName(String userName);

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param arg
     * @return
     */
    /**
     * 分页
     *
     * @param spav
     * @return
     */
    List<SalePersonAccountVo> queryByPage(SalePersonAccountVo spav);

    /**
     * @param spav
     * @return
     */
    Integer queryCountByPage(SalePersonAccountVo spav);

    int deleteByPrimaryKey(Integer id);

    int insert(SalePersonAccount arg);

    int insertSelective(SalePersonAccount arg);

    SalePersonAccount selectByPrimaryKey(Integer id);

    SalePersonAccount selectBySaleId(String saleId);

    int updateByPrimaryKeySelective(SalePersonAccount arg);

}
